package com.chongqing.controller;

import com.alibaba.fastjson.JSONObject;
import com.chongqing.caller.RemoteIamService;
import com.chongqing.entity.MMA;
import com.chongqing.entity.ZDM;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * create by yongli on 2021-06-27 14:33
 */
@RestController
@RequestMapping("/iam")
public class IamTest {


    @Autowired
    RemoteIamService service;


    @PostMapping("/zdm")
    public ZDM zdm(@RequestBody ZDM zdm) {
        System.out.println(JSONObject.toJSONString(zdm));
        zdm.setDOC("ddddddddd");
        return zdm;
    }

    @PostMapping("/mma")
    public void mma(@RequestBody MMA mma) {
        System.out.println(JSONObject.toJSONString(mma));


    }
}
